package com.ruoyi.generator.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 单设计__模块列区按钮配置对象 sys_from_crud_btns
 *
 * @author ZGL
 * @date 2025-01-17
 */
public class FromCrudBtns extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 表单设计标识 */
    @Excel(name = "表单设计标识")
    private String buildKey;

    /** 按钮名称 */
    @Excel(name = "按钮名称")
    private String label;

    /** 按钮类型 */
    @Excel(name = "按钮类型")
    private String type;

    /** 按钮尺寸 */
    @Excel(name = "按钮尺寸")
    private String size;

    /** 按钮样式 */
    @Excel(name = "按钮样式")
    private boolean plain;

    /** 按钮样式 */
    @Excel(name = "按钮样式")
    private boolean round;

    /** 按钮样式 */
    @Excel(name = "按钮样式")
    private boolean circle;

    /** 按钮样式 */
    @Excel(name = "按钮样式")
    private String icon;

    /** 按钮区域 */
    @Excel(name = "按钮区域")
    private String areaType;

    /** 事件代码 */
    @Excel(name = "事件代码")
    private String eventCode;

    /** 访问权限 */
    @Excel(name = "访问权限")
    private String hasPermi;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private boolean isEnabled;

    /** 排序 */
    @Excel(name = "排序")
    private int sort;

    /** 记录标识__新增数据时，生成的唯一值 */
    private String defPk;

    /** 默认与主表关联值 */
    private String defFk;

    /** 删除标记 */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBuildKey(String buildKey)
    {
        this.buildKey = buildKey;
    }

    public String getBuildKey()
    {
        return buildKey;
    }
    public void setLabel(String label)
    {
        this.label = label;
    }

    public String getLabel()
    {
        return label;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setSize(String size)
    {
        this.size = size;
    }

    public String getSize()
    {
        return size;
    }
    public void setPlain(boolean plain)
    {
        this.plain = plain;
    }

    public boolean getPlain()
    {
        return plain;
    }
    public void setRound(boolean round)
    {
        this.round = round;
    }

    public boolean getRound()
    {
        return round;
    }
    public void setCircle(boolean circle)
    {
        this.circle = circle;
    }

    public boolean getCircle()
    {
        return circle;
    }
    public void setIcon(String icon)
    {
        this.icon = icon;
    }

    public String getIcon()
    {
        return icon;
    }
    public void setAreaType(String areaType)
    {
        this.areaType = areaType;
    }

    public String getAreaType()
    {
        return areaType;
    }
    public void setEventCode(String eventCode)
    {
        this.eventCode = eventCode;
    }

    public String getEventCode()
    {
        return eventCode;
    }
    public void setDefPk(String defPk)
    {
        this.defPk = defPk;
    }

    public String getDefPk()
    {
        return defPk;
    }
    public void setDefFk(String defFk)
    {
        this.defFk = defFk;
    }

    public String getDefFk()
    {
        return defFk;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public String getHasPermi() {
        return hasPermi;
    }

    public void setHasPermi(String hasPermi) {
        this.hasPermi = hasPermi;
    }

    public boolean isPlain() {
        return plain;
    }

    public boolean isRound() {
        return round;
    }

    public boolean isCircle() {
        return circle;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public boolean getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(boolean isEnabled) {
        this.isEnabled = isEnabled;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("buildKey", getBuildKey())
            .append("label", getLabel())
            .append("type", getType())
            .append("size", getSize())
            .append("plain", getPlain())
            .append("round", getRound())
            .append("circle", getCircle())
            .append("icon", getIcon())
            .append("areaType", getAreaType())
            .append("eventCode", getEventCode())
            .append("remark", getRemark())
            .append("defPk", getDefPk())
            .append("defFk", getDefFk())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }

    public FromCrudBtns() {
    }

    public FromCrudBtns(String buildKey, String label, String type, String size, String icon, String areaType, String eventCode, String hasPermi,int sort,boolean plain,boolean round,boolean circle,boolean isEnabled) {
        this.buildKey = buildKey;
        this.label = label;
        this.type = type;
        this.size = size;
        this.icon = icon;
        this.areaType = areaType;
        this.eventCode = eventCode;
        this.hasPermi = hasPermi;
        this.sort = sort;
        this.plain = plain;
        this.round = round;
        this.circle = circle;
        this.isEnabled = isEnabled;
    }
}
